package entity

import (
	"gorm.io/gorm"
)

type Menu struct {
	gorm.Model
	Title     string `gorm:"column:title;type=varchar(255);not null"`
	Icon      string `gorm:"column:icon;type:varchar(255);not null"`
	Key       string `gorm:"column:key;type:varchar(255);not null"`
	Path      string `gorm:"column:path;type:varchar(255);not null"`
	Authority int    `gorm:"column:authority;type:int;default:2;not null"`
	FatherID  int    `gorm:"column:father_id;type:int;default:0;not null"`
}
